package com.usefullc.user.param;

import com.usefullc.common.domain.BaseDomain;
import com.usefullc.system.validator.UsefulPropertyVerify;
import com.usefullc.system.validator.UsefulValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author: Sampson
 * @date: 2022-02-14 16:23
 */
@ApiModel("用户修改密码参数")
@Data
public class UpdatePwdParam  extends BaseDomain {

    @UsefulPropertyVerify(required = true,minLen = 6,maxLen = 12)
    @ApiModelProperty(notes = "旧密码",example = "123456",required = true)
    private String oldPwd;


    @UsefulPropertyVerify(required = true,minLen = 6,maxLen = 12)
    @ApiModelProperty(notes = "新密码",example = "123456",required = true)
    private String newPwd;

}
